#include <iostream>
#include <string>
#include <vector>
#define lld long long
#define ENDL '\n'
#define LOG(var) std::cout << #var << " = " << (var) << ENDL
using std::cin;
using std::cout;
using std::string;
using std::vector;

void solve(string s) {
  int n = s.size();
  vector<char> s1; // 奇数
  vector<char> s2; // 偶数
  for (auto x : s) {
    int x_ = x - '0';
    if (x_ & 1)
      s1.push_back(x);
    else
      s2.push_back(x);
  }
  string x;
  string ans = "";
  int i = 0, j = 0;
  while (i < s1.size() and j < s2.size()) {
    if (s1[i] > s2[j]) {
      ans += s1[i];
      i++;
    } else {
      ans += s2[j];
      j++;
    }
  }

  // 一个跑完了 另一个没跑完
  while (i < s1.size()) {
    ans += s1[i];
    i++;
  }
  while (j < s2.size()) {
    ans += s2[j];
    j++;
  }

  cout << ans << ENDL;
}

int main() {
  string s;
  while (cin >> s) {
    solve(s);
  }
  return 0;
}